package com.financing.platform.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.financing.platform.dao.IProjectRabateDao;
import com.financing.platform.dto.ProjectRabateDTO;
import com.financing.platform.service.IProjectRabateService;

@Service("projectRabateServiceImp")
public class ProjectRabateServiceImp extends BaseServiceImpl implements
		IProjectRabateService {

	@Autowired
	IProjectRabateDao projectRabateDaoImpl;
	
	public Integer addProjectRabateInfo(ProjectRabateDTO projectRabateDTO) {
		return projectRabateDaoImpl.insertProjectRabate(projectRabateDTO);
	}

	public List<ProjectRabateDTO> queryProjectRabate(
			ProjectRabateDTO projectRabateDTO) {
		return projectRabateDaoImpl.queryProjectRabateList(projectRabateDTO);
	}

	public int deleteProjectRabate(Integer pid) throws SQLException {
		return	projectRabateDaoImpl.deleteProjectRabate(pid);
	}

}
